#@adminLayout() 

#define main()
<div class="jfa-header-box" id="jfa-header-box">
	<div class="jfa-crumbs" id="jfa-crumbs">日志管理</div>
	<div class="jfa-search-box">
		<form action="/admin/loginlog/search">
			### <input class="jfa-search" type="text" name="keyword"
				placeholder="搜索">
		</form>
	</div>
	#include("/_view/_admin/common/_header_right.html")
</div>

### 内容区域
<div class="jfa-content-box" id="jfa-content-box">
	<div class="jfa-content" id="jfa-content">



		<div class="jfa-table-box margin-top-30">
			<table class="table table-bordered table-hover margin-bottom-10">
				<thead>
					<tr>
						<th>id</th>
						<th>登录账户名</th>
						<th>登录时间</th>
						<th>登录地址</th>
						<th>操作</th>

					</tr>
				</thead>
				<tbody>
					#for(x : loginlogPage.getList())
					<tr>
						<th scope="row">#(x.id)</th>
						<td>#(x.nickName)</td>
						<td>#(x.loginAt)</td>
						<td>#(x.ip)</td>

						<td class="jfa-operation-button">
							<!-- 		#permission("/admin/loginlog/edit")
						<a href="/admin/loginlog/edit?id=#(x.id)&p=#(loginlogPage.pageNumber)">
							<i class="fa fa-pencil" title="编辑"></i>
						</a>
						#end
                     --> #permission("/admin/loginlog/delete") <a
							data-delete data-title="#escape(x.title)"
							data-action="/admin/loginlog/delete?id=#(x.id)"> <i
								class="fa fa-trash" title="删除"></i>
						</a> #end
						</td>
					</tr>
					#end
				</tbody>
			</table>

			<div>#@adminPaginate(loginlogPage.pageNumber,
				loginlogPage.totalPage, "/admin/loginlog?p=")</div>
		</div>
	</div>
	<!-- END OF jfa-content -->
</div>
<!-- END OF jfa-content-box -->

<style type="text/css">
</style>
<script type="text/javascript">
	$(document).ready(function() {
		initMagicInput(prepareAction);
	});

	function prepareAction($this, state) {
		return {
			url: state ? "/admin/loginlog/lock" : "/admin/loginlog/unlock",
			data : {
				id: $this.attr("data-id")
			}
		}
	}
</script>
#end



